import {
  routerReducer as routing,
} from 'react-router-redux'
import {
  combineReducers,
} from 'redux'

import tabListResult from './tabList'

// house
import {
  houseCheckSearchResult,
  houseCheckSearchQuery,
  houseDetailResult
} from './house'
import {
  loginResponse,
} from './common'


// local
import {
  localListSearchResult,
  localListSearchQuery
} from './local'
// flow
import {
  flowListSearchResult,
  flowListSearchQuery
} from './flow'
// abroad
import {
  abroadListSearchResult,
  abroadListSearchQuery,
  abroadDetailResult
} from './abroad'


// manage
import {
  userSortResult,
  userListResult,
  userListSearchQuery,
  userDetailResult,
  roleDetailResult
}from './manage'


const rootReducer = combineReducers({
  routing,
  config: (state = {}) => state,
  tabListResult,

  loginResponse,
  
  houseCheckSearchResult,
  houseCheckSearchQuery,
  houseDetailResult,

  localListSearchResult,
  localListSearchQuery,
  flowListSearchResult,
  flowListSearchQuery,
  abroadListSearchResult,
  abroadListSearchQuery,
  abroadDetailResult,

  userSortResult,
  userListResult,
  userListSearchQuery,
  userDetailResult,
  roleDetailResult,
  
});

export default rootReducer;
